package com.freak.kotlinfitnessserver.constant.fitness

import java.util.UUID

object FitnessExtendedProtocolConstant {
    // 扩展特征 write
    val fitnessExtended: UUID = UUID.fromString("d18d2c10-c44c-11e8-a355-529269fb1459")

    /**
     * 解锁码 bit0
     */
    const val unlockCodeKey: String = "UnlockCode"

    /**
     * 解锁码长度
     */
    const val unlockCodeLength: Int = 6

    /**
     * 心率 bit1
     */
    const val heartRateKey: String = "heartRate"

    /**
     * 心率数据长度
     */
    const val heartRateLength: Int = 1

    /**
     * 总卡路里 bit2
     */
    const val totalEnergyKey: String = "totalEnergy"

    /**
     * 总卡路里长度
     */
    const val totalEnergyLength: Int = 2

    /**
     * 动态卡路里 bit3
     */
    const val dynamicEnergyKey: String = "dynamicEnergy"

    /**
     * 动态卡路里长度
     */
    const val dynamicEnergyLength: Int = 2

    /**
     * 实时步数bit4
     */
    const val stepCountKey: String = "stepCountKey"

    /**
     * 实时步数长度
     */
    const val stepCountLength: Int = 2

    /**
     * 抑制自动暂停bit5
     */
    const val suppressAutoPauseKey: String = "suppressAutoPauseKey"

    /**
     * 抑制自动暂停长度
     */
    const val suppressAutoPauseLength: Int = 1

    /**
     * 目标热量bit6 单位千卡
     */
    const val targetedExpendedEnergyKey: String = "targetedExpendedEnergyKey"

    /**
     * 目标热量长度
     */
    const val targetedExpendedEnergyLength: Int = 2
}